package com.idheima.zuoye.zuoye3;

public class Test {
    public static void main(String[] args) {
        Fu fu = new Ben("奔驰", 1500000);
        fu.run();

        System.out.println("-----------------");
        Fu fu1 = new BaoMo("宝马", 2000000);
        fu1.run();

        BaoMo baomo1 = new BaoMo("保时捷", 500000);
        baomo1.gps();


        System.out.println("-----------------");
        Fu fu3 = new Baocar("宝马", 500000);
        fu3.run();

        Baocar baocar1 = new Baocar("保时捷", 500000);
        baocar1.gps();

        System.out.println("-----------------");
        Fu fu2 = new Yama("保时捷", 500000);
        fu2.run();

    }
}
